<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib  prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<script type="text/javascript">
    function divSearch(obj,jbsxBox){
        alert(jbsxBox);
    }
    function modifyUser(){
        
       // $.pdialog.open(url, dlgId, title, options);　


      //navTab.reload("/admin/moduleList.htm", "{ title:'用户列表, fresh:false, data:{} }");
       
      //alert(navTab._currentIndex);
      //  $.pdialog.open("changepwd.htm", "modifyUser", "修改用户信息","{}");
    }
    
    function dlgInit(){
        $("#navTabId").val(navTab._getTabs().eq(navTab._currentIndex).attr("tabid"));
    }
    
    function exportExcel(){
       //alert(navTab._currentIndex);
       var tabId = navTab._getTabs().eq(navTab._currentIndex).attr("tabid");
       alert(tabId);
    }
</script>
<div class="pageHeader" style="border:1px #B8D0D6 solid">
	<form id="pagerForm" onsubmit="return divSearch(this, 'jbsxBox');" action="/admin/userList.htm" method="post">
        <input type="hidden" id="pageNum" name="pageNum" value="1"/>
	<input type="hidden" id="numPerPage" name="numPerPage" value="" />
	<input type="hidden" id="orderField" name="orderField" value="" />
	<input type="hidden" id="orderDirection" name="orderDirection" value="" />
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td class="dateRange">
					尿检日期:
					<input type="text" value="" readonly="readonly" class="date" name="dateStart">
					<span class="limit">-</span>
					<input type="text" value="" readonly="readonly" class="date" name="dateEnd">
				</td>
				<td>
					尿检结果：
					<input type="radio" name="njjg" value="" checked="checked" />全部
					<input type="radio" name="njjg" value="1"/>阴性
					<input type="radio" name="njjg" value="2"/>阳性
				</td>
				<td>
					病人编号：<input type="text" name="keyword" />
				</td>
				<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></td>
			</tr>
		</table>
	</div>
    </form>
</div>

<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="demo/pagination/dialog2.html" target="dialog" mask="true"><span>添加尿检检测</span></a></li>
			<li><a class="delete" href="/admin/ajaxDeleteUser.htm"  target="selectedTodo" rel="ids" postType="String" title="确定要删除选中的数据吗?" onclick="createHref(this);"><span>删除</span></a></li>
            <li><a class="edit"  href="/admin/modifyUser.htm?userId={sid_obj}" width="550" height="600" mask=true target="dialog" warn="请选择一条记录" onclick="createHref(this);"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="javascript:exportExcel();"><span>导出EXCEL</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="115" rel="jbsxBox">
		<thead>
			<tr>
                            <th width="25" style="text-align: center;"><input type="checkbox" class="checkboxCtrl" group="ids" /></th>
                            <!--<th width="35" style="text-align: center;">序号</th>-->
                            <th width="60" orderField="number">用户ID</th>
                            <th width="75">用户账户</th>
                            <th width="75">用户姓名</th>
                            <th width="80">会员等级</th>
                            <th width="120">邮箱地址</th>
                            <th width="100">联系方式</th>
                            <th width="80">注册时间</th>
			</tr>
		</thead>
		<tbody>
                    <s:iterator id="user" value="pageInfo.fileList" status="s">
                        <tr target="sid_obj" rel="<s:property value="userId"/>">
                                <td  style="text-align: center;"><input type="checkbox" name="ids" value="<s:property value="userId"/>" /></td>
				<!--<td  style="text-align: center;"><s:property value="#s.index+1"/></td>-->
                                <td><s:property value="userId"/></td>
                                <td><s:property value="nickName"/></td>
                                <td><s:property value="realName"/></td>
                                <td><s:property value="TMemberRank.memberRankName"/></td>
				<td><s:property value="email"/></td>
                                <td><s:property value="contract"/></td>
                                <td><s:date name="registerTime" format="yyyy-MM-dd HH:mm:ss"/></td>
			</tr>
                    </s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({pageNum:'${pageInfo.currentPage}',numPerPage:this.value});" targetType="navTab">
                            <option value="20"<s:if test="%{pageInfo.pageSize == 20}">selected="true"</s:if>>20</option>
                            <option value="50"<s:if test="%{pageInfo.pageSize == 50}">selected="true"</s:if>>50</option>
                            <option value="100"<s:if test="%{pageInfo.pageSize == 100}">selected="true"</s:if>>100</option>
                            <option value="200"<s:if test="%{pageInfo.pageSize == 200}">selected="true"</s:if>>200</option>
			</select>
                        <span>条，共${pageInfo.totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${pageInfo.totalCount}" numPerPage="${pageInfo.pageSize}" pageNumShown="10" currentPage="${pageInfo.currentPage}"></div>

	</div>
</div>